package com.nfc.base.DaoImp;

import javax.transaction.Transactional;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.nfc.base.Dao.StaffDao;
import com.nfc.base.Entity.Staff;

@Repository("staffDao")
@Transactional
public class StaffDaoImp implements StaffDao {

	@Autowired
	private SessionFactory sessionFactory;

	public void create(Staff staff) {
		sessionFactory.getCurrentSession().save(staff);

	}

	public void update(Staff staff) {
		sessionFactory.getCurrentSession().update(staff);
	}

	public void delete(int staff_id) {

		

	}

}
